package com.roger.myHome.exception;

public enum Status {


    SUCCESS(200,"成功"),
    QUERY_SUCCESS(200,"查询成功"),
    ERROR(500,"失败"),
    QUERY_ERROR(500,"查询失败");


    Status(Integer key, String name){
        this.key = key;
        this.name = name;
    }


    private Integer key;
    private String name;

    public Integer getKey(){
        return key;
    }

    public String getName(){
        return name;
    }

}
